#ifndef QUEUEMANAGER_H_INCLUDED
#define QUEUEMANAGER_H_INCLUDED
typedef struct page_table{
	int frame; //location
	int frameType; // 1 is logical and 2 is backing
    int valid;  //If the frame has been brought into the system.
}page_table;

typedef struct memory_block{
	int ID;
	int valid;
	int LRU;
	int frameType;// 1 is page table and 2 is data
	int owner;//0 user and 1 system
	page_table pagetable[1024];
	int ptsize;
	int data;
	int nextIndex;
	int prevIndex;
}memory_block;
void Enqueue(int, int, int, int, int, int, int, page_table*, int*, int*, int*, int*, memory_block*);
memory_block Dequeue(int*, int*, int*, int*, memory_block*);
memory_block Delete(int, int*, int*, int*, int*, memory_block*, memory_block*);
void iniFree(int*, int*, int, memory_block*);
void iniQueue(int*, int*, int*, int*, int*, memory_block*, int, int);
#endif
